package com.qf.feign;

import com.qf.entity.Hotal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("micro-hotal")
public interface HotalFeign {

    @RequestMapping("/hotal/insert")
    int insertHotal(@RequestBody Hotal hotal);

    /**
     * 查询酒店列表
     * @return
     */
    @RequestMapping("/hotal/list")
    List<Hotal> queryAll();
}
